#include "wave_data.h"
#include<QDebug>
wave_data::wave_data(QObject *parent) : QObject(parent)
{
    list_data1.clear();
    list_data2.clear();
    list_data3.clear();
}

void wave_data::update_wave_data(double data1,double data2,double data3,double data4){
    list_data1.push_back(data1);
    list_data2.push_back(data2);
    list_data3.push_back(data3);

    if(list_data1.size() == 10 ){
        emit sendWaveData(list_data1,list_data2,list_data3,data4);
        list_data1.clear();
        list_data2.clear();
        list_data3.clear();
    }
}

